import { adminBaseRoutePath } from '/@/router/static/adminBase'
import createAxios from '/@/utils/axios'

export const url = adminBaseRoutePath + '/shop.Dashboard/'

export function index() {
    return createAxios(
        {
            url: url + 'index',
            method: 'get',
        },
        {
            loading: true,
        }
    )
}

export function getStatisticsChart(params: anyObj) {
    return createAxios(
        {
            url: url + 'getStatisticsChart',
            method: 'get',
            params,
        },
        {
            loading: true,
        }
    )
}
